package com.mycode.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Zengsh123 on 2020/3/11.
 */
@RestController
public class ProviderController {
    @Value("${server.port}")
    private String port;

    @GetMapping("/service/consul")
    public String get(){
        return "This service registry in consul, port: " + port;
    }
}
